<?php
class User_Service_Right
{
	public function __construct(){
		
	}

	public function add($row){
		$RightObj = new User_Model_Right();
		return $RightObj->add($row);		
	}
	
	public function update($row,$ur_id){
		$RightObj = new User_Model_Right();
		return $RightObj->update($row,$ur_id);		
	}
	
	public function delete($ur_id){
		$RightObj = new User_Model_Right();
		return $RightObj->delete($ur_id);		
	}
	
	/**
	 * 获取指定模块信息
	 */
	public function getByUrid($ur_id){
		$RightObj = new User_Model_Right();
		return $RightObj->getByUrid($ur_id);		
	}
	
	/**
	 * 获取所有模块名
	 */
	public function getAllModule(){
		$RightObj = new User_Model_Right();
		return $RightObj->getAllModule();	
	}
	
	/**
	 * 根据条件获取指定模块信息
	 */
	public function getByCond($cond,$type,$order,$count,$offset){
		$Obj = new User_Model_Right();	
		return $Obj->getByCond($cond,$type,$order,$count,$offset);		
	}
		
}